-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable reload-interval flag for all TLS server configs #6525
Conversation
Signed-off-by: cs-308-2023 <[email protected]>
Signed-off-by: cs-308-2023 <[email protected]>
@yurishkuro Some tests are failing because of the changes that are made. Most probably it is because the tests defined are not expecting reload-interval to be true. So to solve that, I think the way ahead is to make changes in the tests that were failing |
Signed-off-by: cs-308-2023 <[email protected]>
1799cdf
to
99809eb
Compare
@yurishkuro I have removed the EnableCertReloadInterval from everywhere. Can you check now. Some test cases are failing though since they are made for EnableCertReloadInterval=false. |
@@ -131,13 +131,11 @@ func TestServerCertReloadInterval(t *testing.T) { | |||
{ | |||
config: ServerFlagsConfig{ | |||
Prefix: "enabled", | |||
EnableCertReloadInterval: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need this test anymore. We can just move the parsing of this flag to TestServerFlags
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So shall I remove this test completely?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ADI-ROXX Yeah - I think we can remove this test but we don't want to lose coverage of this flag. So we can add this flag as part of the test setup in TestServerFlags
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So we can add this flag as part of the test setup in TestServerFlags
I am not able to understand what is meant by this. What do I have to add in TestServerFlags? Because EnableCertReloadInterval is no longer in ServerFlagsConfig, what is to be done now?
Signed-off-by: cs-308-2023 <[email protected]>
95aa6bc
to
5edf8f0
Compare
Signed-off-by: cs-308-2023 <[email protected]>
Signed-off-by: cs-308-2023 <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6525 +/- ##
===========================================
+ Coverage 50.21% 96.25% +46.03%
===========================================
Files 188 372 +184
Lines 11405 21276 +9871
===========================================
+ Hits 5727 20479 +14752
+ Misses 5220 609 -4611
+ Partials 458 188 -270
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: Yuri Shkuro <[email protected]>
Signed-off-by: Yuri Shkuro <[email protected]>
Which problem is this PR solving?
reload-interval
option for TLS config #6521Description of the changes
How was this change tested?
Checklist
jaeger
:make lint test
jaeger-ui
:npm run lint
andnpm run test